<style type="text/css">
 ul{ list-style: none; margin: 0 ; padding: 0}
  .search ul li{ margin-right: 10px; float: left;}
</style>
<!-- <div class="actMenu">
  
</div> -->
<div class="main_top">
  <a href ="#" class="bg_blue">预售产品</a>
</div>

<div class="search" >
    <div class="">
      <ul>
        <li><a href="{:U(MODULE_NAME.'/Product/actlist',array('type'=>'0'))}" <if condition="($type eq false) OR ($type eq '0')" >class="current"</if> >全部预售</a></li>
        <li><a href="{:U(MODULE_NAME.'/Product/actlist',array('type'=>'1'))}" <if condition="$type eq '1' " >class="current"</if> >待预售</a></li>
        <li><a href="{:U(MODULE_NAME.'/Product/actlist',array('type'=>'2'))}" <if condition="$type eq '2' " >class="current"</if> >预售中</a></li>
        <li><a href="{:U(MODULE_NAME.'/Product/actlist',array('type'=>'3'))}" <if condition="$type eq '3' " >class="current"</if> >支付尾款</a></li>
        <li><a href="{:U(MODULE_NAME.'/Product/actlist',array('type'=>'4'))}" <if condition="$type eq '4' " >class="current"</if> >预约中</a></li>
        <li><a href="{:U(MODULE_NAME.'/Product/actlist',array('type'=>'5'))}" <if condition="$type eq '5' " >class="current"</if> >已结束</a></li>
      </ul>
    </div>
    <div class="clear"></div>
</div>
<div class="operate2">
  <ul>
    <li onclick="window.location='{:U(MODULE_NAME.'/Product/actadd')}'"><span class="icon-add01"></span>添加预售活动专题</li>
  </ul>
  <div class="clear"></div>
</div>
<table class="list">
		<thead>
  		<tr>
        <th>预售编号</th>
        <th>产品名称</th>
        <th>预售时间</th>
        <th>支付尾款</th>
        <th>开始预约</th>
        <th>当前状态</th>
        <th>操作</th>
      </tr>
		</thead>
    <tbody>
		<foreach name='list' item='v'>
        <tr>
           <td>{$v.id}</td>
           <td>{$v.title}</td>
           <td>{$v.presellDateStart|date = 'Y-m-d',###}至{$v.presellDateEnd|date = 'Y-m-d',###}</td>
           <td>{$v.paymentDateStart|date = 'Y-m-d',###}至{$v.paymentDateEnd|date = 'Y-m-d',###}</td>
           <td>{$v.appointmentDateStart|date = 'Y-m-d',###}至{$v.appointmentDateEnd|date = 'Y-m-d',###}</td>
           <td>{$v.status}</td>
           <td>
             <a href="">查看</a>
             <a href="{:U(MODULE_NAME.'/Product/actedit',array('id' => $v['id']))}">编辑</a>
             <a href="">复制</a>
             <a href="javascript:;" onclick="toConfirm('{:U(MODULE_NAME.'/Product/actdel',array('id' => $v['id']))}', '确实要删除吗？')">删除</a>
           </td>
       </tr>
      </foreach>
 </tbody>
</table>
<div class="page" style="clear: both;">{$page}</div>
